async function logout(){
    await $.get("/user/logout");
    location.reload();
}